<div class="list_add"><a href="<?php echo $this->url(array('controller'=>'service',
	'action' => 'assignagentcode'));?>"><?php echo $this->translate($this->escape("Assign service"))?></a>
</div>
<?php if (count($this->paginator)): ?>
<div class="list">
	<div class="list_title">
		<div class="ltc1_user"><?php echo $this->translate("Agent name")?></div>
		<div class="ltc2_user"><?php echo $this->translate("Service code")?></div>
		<div class="ltc3_user"><?php echo $this->translate("Agent service code")?></div>
	</div>
	<?php $i = 0;foreach ($this->paginator as $item): ?>
	<?php if($i++ % 2):?>
	<div class="list_data_odd">
	<?php else:?>
	<div class="list_data_even">
	<?php endif;?>
		<div class="ldc1_user"><a href="<?php echo $this->url(array('controller' => 'service',
				'action' => 'editagentcode', 'id'=>$item["id"]));?>"><?php echo $this->escape($item["agent_name"]);?></a></div>
		<div class="ldc2_user"><?php echo $this->escape($item["service_code"]);?></div>
		<div class="ldc3_user"><?php echo $this->escape($this->translate($item["agent_service_code"]));?></div>
		<div class="ldc8_user">
			<a href="<?php echo $this->url(array('controller' => 'service',
				'action' => 'deleteagentcode', 'id'=>$item["id"]));?>"><?php echo $this->translate("Delete");?></a>
		</div>
	</div>
	<?php endforeach;?>
</div>
<?php endif; ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'paging/item.phtml'); ?>